package xin.marcher.module.replenished.redis;

import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
import lombok.Data;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * 排序set类型缓存
 */
@Data
public class RedisSortedSetCache<T> {

    /**
     * 添加
     */
    private Map<String, Double> addMap = Maps.newHashMap();

    /**
     * 删除
     */
    private Set<String> deleteMemberSet = Sets.newHashSet();

    /**
     * 删除缓存
     */
    private Boolean deleteKey = Boolean.FALSE;

    /**
     * 添加
     */
    private List<T> addList = Lists.newArrayList();

}
